cmake_minimum_required(VERSION 3.19)
project(design-pattern-cpp)

set(CMAKE_CXX_STANDARD 14)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x")


# 引入子目录
ADD_SUBDIRECTORY(Factory)
ADD_SUBDIRECTORY(AbstractFactory)
ADD_SUBDIRECTORY(Singleton)
ADD_SUBDIRECTORY(Build)
ADD_SUBDIRECTORY(Prototype)
ADD_SUBDIRECTORY(Bridge)
ADD_SUBDIRECTORY(Adapter)
ADD_SUBDIRECTORY(Decorator)
ADD_SUBDIRECTORY(Flyweight)
ADD_SUBDIRECTORY(Facade)
ADD_SUBDIRECTORY(Proxy)
ADD_SUBDIRECTORY(Template)
ADD_SUBDIRECTORY(Strategy)
ADD_SUBDIRECTORY(Memento)
ADD_SUBDIRECTORY(Mediator)
ADD_SUBDIRECTORY(Chain)
ADD_SUBDIRECTORY(Interpreter)
